// Name        : xScopeLock.cpp
// Author      : Peter.Song
// Version     :
// Copyright   : Your copyright notice
// Description : Simple memory pool in C++, Ansi-style
//============================================================================
#include "xScopeLock.h"

CXScopeLock::CXScopeLock(pthread_mutex_t* mutex)
: mp_mutex(mutex)
{
	pthread_mutex_lock(mp_mutex);
}
CXScopeLock::~CXScopeLock()
{
	pthread_mutex_unlock(mp_mutex);
}
